package com.qf.student.util;

import java.sql.Connection;

/**
 * @version1.0
 * @auth dmh
 */
public class ConnectionThreadLocal {
    private static ThreadLocal<Connection> connectionThreadLocal=new ThreadLocal<>();
    public static void set(Connection connection){
        connectionThreadLocal.set(connection);
    }
    public static Connection get(){
        return connectionThreadLocal.get();
    }

    public static void remove(){
        connectionThreadLocal.remove();
    }
}
